package com.xmg.design23.d2_singleton;

/**
 * @Author: mazhongqing
 * @Date: 2021/3/24 15:25
 */
public class SingletonInnerClass {
    private SingletonInnerClass(){

    }
    private static class InnerClass{
        public static SingletonInnerClass instance = new SingletonInnerClass();
    }

    public static SingletonInnerClass getInstance(){
        return InnerClass.instance;
    }
}
